How to Create a Continuous OTA Job

The Continuous OTAOver-the-Air feature provides the capability to find and add new devices that match your OTA job's criteria during time frame specified in your job's schedule. No additional user interaction is required if you have a job schedule. While the job is running, the Ayla platform automatically continues to evaluate (every hour) devices in the field that match the criteria specified for your Continuous OTA job. When new devices matching this job criteria come online, the platform identifies those devices as candidates and pushes this OTA upgrade at the specified runtime to those new devices.

Create a Continuous OTA Job as follows:

  1. On the Jobs page, click the CREATE DEVICE JOB button:

This displays a menu page to select a job type, as shown below:

  1. Click Host OTA to open the Create Host OTA page (example shown below):

  1. Complete the fields for your Host OTA Job as follows:
  1. For OEM Model, select the OEM model of the devices that will be targeted for this job. This list contains the model IDs of the OEM’s host application board, which are extracted from each Ayla template associated with your OEM admin role. Your selection specifies the OEM model of the target devices that will receive the firmware image uploaded for this job.
  2. For Action, notice that the type of ICC job that you are creating displays (which cannot be edited). In this case, it should be Host OTA.
  3. For Job Name, enter a name for this ICC job.
  4. For Recurrence Type, select the Continuous option to specify how often this ICC job must be downloaded to the devices.

The other option is called One Time. This specifies that once the ICC job is activated, the Ayla platform evaluates which devices match the configurations for this ICC job, and then pushes the OTA upgrade to those devices. This evaluation only happens one time upon activating the ICC job.

  1. For Number of Retries, select the number of times to attempt to download this ICC job if the first attempt is not successful.
  2. For Delivery Type, select one of the following options to specify how you wish this ICC Job should be executed:
  • System Push - When new devices that match the configurations in this ICC job are added and online, the Ayla platform will push this Host OTA upgrade job at the runtime of those new devices. The number of times this system push occurs depends on whether you configured the recurrence for Continuous or One Time.
  • User Consent - The end-user must approve the delivery of this ICC job when it is activated, or the job is not pushed to the devices. You may also leverage the Cloud APIs or Mobile SDKsSoftware Development Kits to obtain this user consent; click here to use either.
  1. For Job Metadata, click the Plus Sign icon (), and then enter the key and value in the fields that display. If you wish to enter additional key-value pairs for this job, click the Plus Sign icon () to repeat this step. You may wish to add metadata to associate and categorize the job for your own internal needs, for example, adding a campaign ID or approval ID to the job for your internal tracking system.

Notice that you can click the Trash Can icon () to delete your metadata entries.

  1. Click the CONTINUE button (shown below).

  1. On the next page, select the OTA image file of the host firmware that is going to be used to upgrade the target devices for this ICC job. Notice that this page is on the OTA Attributes tab. (Refer to the example below.) This list contains host firmware images that you uploaded; click here for the steps to do this if your image is not in the list.

Notice also that once you select the image file, the remaining fields display on the OTA Attributes tab, and the UPGRADE TO: section shows the software version of the image file you selected in this step and the OEM model of the target devices for this ICC job. Refer to the example below:

The lower section, IMAGE FILE DETAILS, provides information on the image file uploaded for this upgrade. The details in this section were entered when this firmware image was added to the Ayla Customer Dashboard. (Refer to Create New Host Images for a complete description of these details.)

  1. For Current Host Software Version in the UPGRADE FROM section, either enter the current software version of the host firmware on the target devices that will be upgraded or select All versions. Notice that these radio buttons and the Image File drop-down list are the only fields that can be edited on this tab. The latter gives you the opportunity to change the image file of the host firmware for this upgrade (which you selected in step i) before proceeding to the next step. (Refer to the example below.)

  1. Click the CONTINUE button to move to the Set Filter tab (example shown below).

  1. For the Select Filter Option, select one of the following filters and enter the details required to specify the criteria for the list of devices to target: (Click each of the following filter options to expand its configuration steps.)
  1. After you select a filter and enter its criteria, click the Estimated Devices Included button to obtain the approximate number of devices that will be included in the filter results. Refer to the example below:

  1. click the PREVIEW FILTER QUERY RESULTS button (shown below) to compile a sample list of target devices for this ICC job.

Following is an example of the Test Preview window:

  1. After closing the Test Preview window, click the CONTINUE button to open the Set A Schedule tab. Notice at the top of the Create Host OTA page, two different messages display consecutively when this Host OTA ICC job is created and saved properly. Following are examples of the messages:

  1. For the Schedule Type field, select Recurring Schedule if you wish to set a schedule for this ICC job (example shown below).

The Schedule feature eliminates the need for any user interaction once the OTA job is activated. There are two options for the Schedule Type field:

  • None - the job runs upon activation without an associated schedule. In this case, you have to manually manage starting and stopping the job from the Jobs tab, as shown below:

  • Recurring Schedule - The job runs during the active dates, day, and execution time ranges specified in the schedule. When outside these time ranges, the job is paused. Following is an example of the settings required for the recurring schedule:

Configure a recurring schedule as follows:

  1. For Schedule Timezone, select the timezone for the scheduled parameters of this ICC job.
  2. For Job Start Date, select the date to specify when the job will start.
  3. For Job End Date, select the date to specify when to stop the job.
  4. For Job Active Days, click the check boxes for the days that this job should be activated.
  1. For Job Active Time, click either All Day (24 hrs) or Set Time Range to specify the duration that this job will run on the specified dates. If you click Set Time Range, complete the following fields:
  1. In From, select the time to start the job each day you specified in steps q - s above.
  1. In To, select the time to stop the job each day you specified in steps q - s above.
  1. Click the SAVE button. The following message displays at the top of the page when the schedule has been successfully saved for this ICC job.

Your new Host OTA ICC job is added to the Jobs tab.

If you did not configure a recurring schedule and wish to do this after you have already created your ICC job, click the Schedule icon on the Jobs tab (shown in the example below):

When you click the Schedule icon, the Set A Schedule dialog box opens (example shown below). Repeat steps p1-p5 and step q above.

 

 

See also: Ayla IoT Command Center, ICC: Device Filters tab, ICC: Files tab, ICC: Host OTA Images tab, Additional permissions OEM User Roles when creating OTA jobs, How to Create a Multi-Component OTA Job, How to Create a Continuous OTA Job

Please click here to let us know how we're doing. Thank you.